home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
windows
/
xmdmdlp.zip
/
FDATE.ASM
< prev
next >
Wrap
Assembly Source File
|
1992-01-28
|
3KB
|
98 lines
title dlgopena.asm
;*******************************************************************************
;* *
;* MODULE : DLGOPENA.ASM *
;* *
;* DESCRIPTION : Assembly language helper routines for DLGOPEN.C *
;* *
;* FUNCTIONS : chdir () - change to specified asciiz directory. *
;* *
;*******************************************************************************
?WIN = 1
?PLM=1 ; PASCAL Calling convention is DEFAULT
?WIN=1 ; Windows calling convention
?386=0 ; Use 386 code?
include cmacros.inc
;*********************************************************************
;* The following structure should be used to access high and low
;* words of a DWORD. This means that "word ptr foo[2]" -> "foo.hi".
;*********************************************************************
LONG struc
lo dw ?
hi dw ?
LONG ends
FARPOINTER struc
off dw ?
sel dw ?
FARPOINTER ends
;*********************************************************************
; DATA SEGMENT DECLARATIONS
;*********************************************************************
ifndef SEGNAME
SEGNAME equ <TEXT>
endif
if ?386
.386p
createSeg _%SEGNAME, CodeSeg, word, use16, CODE
else
.286p
createSeg _%SEGNAME, CodeSeg, word, public, CODE
endif
sBegin DATA
sEnd DATA
sBegin CodeSeg
assumes CS,CodeSeg
assumes DS,DATA
;****************************************************************************
;* *
;* FUNCTION : getftime(handle) *
;* *
;* PURPOSE : Get file time return *
;* *
;****************************************************************************
cProc getftime,<PUBLIC,FAR,PASCAL>,<ds>
parmW handle
cBegin
mov bx,handle
mov ah,57H
mov al,0
int 21H
mov ax,cx
cEnd
;****************************************************************************
;* *
;* FUNCTION : getftime(handle) *
;* *
;* PURPOSE : Get file time return *
;* *
;****************************************************************************
cProc getfdate,<PUBLIC,FAR,PASCAL>,<ds>
parmW handle
cBegin
mov bx,handle
mov ah,57H
mov al,0
int 21H
mov ax,dx
cEnd
sEnd CodeSeg
end